﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="AdminCustomers.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminCustomers" %>

<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <asp:Label ID="lbAdminCustomer" runat="server" Text="Kunden Leder"></asp:Label>
    </h1>
    <table style="width: 100%; height: 50px;">
        <tr>
            <td style="width: 30%; padding-left:10px;">
               <!-- 
                <asp:HyperLink ID="hlCustomerApproved" NavigateUrl="~/UIAdmin/AdminCustomers.aspx?Approved=1"
                    runat="server">Approve Customers</asp:HyperLink>
               -->
            </td>
            <td style="width: 40%; text-align:center">
                <asp:DropDownList ID="ddlServiceLevel" runat="server" CssClass="textEntry" 
                    Width="150px" AutoPostBack="True" 
                    onselectedindexchanged="ddlServiceLevel_SelectedIndexChanged">                            
                        </asp:DropDownList>
            </td>
            <td style="text-align:right; padding-right:10px; width:30%">
                <asp:HyperLink ID="hlOrderAll" NavigateUrl="~/UIAdmin/AdminCustomers.aspx?Approved=-1"
                    runat="server">Alle Kunder</asp:HyperLink>
            </td>
        </tr>
    </table>
    <asp:Repeater ID="rpCustomers" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                       <!--
                        <th class="actions edit">
                            Approved
                        </th>
                       -->
                        <th class="actions delete">
                            Slett
                        </th>
                        <th>
                            Brukernavn
                        </th>
                        <th>
                            E-Post
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
               <!--
                <td class="actions edit">
                    <asp:CheckBox ID="ckApproved" Checked='<%#Eval("IsApproved")%>' runat="server" />
                </td>
               -->
                <td class="actions delete">
                    <a href='AdminCustomerComfirmDelete.aspx?UserName=<%#Eval("UserName")%>'>
                        <img alt="Delete" src="/Styles/Delete.png"></a>
                </td>
                <th>
                    <a href='AdminCustomer.aspx?UserName=<%#Eval("UserName")%>'>
                        <asp:Label ID="lbUserName" runat="server" Text='<%#Eval("UserName")%>'></asp:Label></a>
                </th>
                <td>
                    <%#Eval("Email") %>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
     <p>
        <eht:paggingcontrol id="PaggingControl1" runat="server" pageurl="AdminOrders.aspx"
            pagesize="10" />
    </p>
   
</asp:Content>
